package com.omar.labs.tamtamy.XML;

import com.omar.labs.tamtamy.Metadata;
import com.omar.labs.tamtamy.utils.XMLUtility;

public class XMLMetadata extends Metadata {
	
	public XMLMetadata(String xml) {
		this.pageTitle = XMLUtility.getNodeValue(xml, "title");
		this.pageDescription = XMLUtility.getNodeValue(xml, "description");
		this.tags = XMLUtility.getNodeValue(xml, "tags").split(",");				
	}

}
